Repository navigation
Add tag-driven release workflow that publishes the .difypkg - #4
Merged
Merged
Conversation
Pushing a vX.Y.Z tag runs verify (tag == manifest.yaml == pyproject.toml, CHANGELOG "## [X.Y.Z]" section), the offline pytest gates, packages ./diffbot with a pinned, SHA256-verified dify CLI 0.6.15, and creates a GitHub Release with the CHANGELOG notes and diffbot-X.Y.Z.difypkg attached (Pre-release for "-" versions), so Dify's "Install plugin from GitHub" works. workflow_dispatch is a dry run that uploads the package as an artifact and never creates a Release. No marketplace submission, no signing, no secrets. CHANGELOG version headings move to Keep a Changelog "## [X.Y.Z]". README, diffbot/README.md and SUBMISSION.md describe the CI-built package as the official one; local packaging stays a dev option. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
.github/workflows/release.yml, which builds the Dify plugin package and publishes it on a GitHub Release so Dify's "Install plugin from GitHub" works.What it does
v*tag.workflow_dispatchis a dry run that builds the package and uploads it as thedifypkgartifact. A dispatch never creates or edits a Release, even on a tag ref.versionindiffbot/manifest.yaml, which must equal[project] versionindiffbot/pyproject.toml.CHANGELOG.mdmust have a non-empty## [X.Y.Z]section. An RC may reuse the base section.pytest -qastest.yml. No secrets.0.6.15(dify-plugin-linux-amd64) from langgenius/dify-plugin-daemon and checks its SHA256 against the GitHub asset digest. It then runsdify plugin package ./diffbot -o diffbot-X.Y.Z.difypkg, checks the size and contents, addsdify plugin checksumto the job summary, and uploads the artifact.contents: write; the workflow default iscontents: read. Release notes come from the CHANGELOG section. Versions containing-are marked--prerelease, and the tag is checked with--verify-tag. If the Release already exists, its notes are left alone and only the asset is replaced.Other changes
## [X.Y.Z](only the heading lines changed).diffbot/README.mdand SUBMISSION.md now say the CI-built package is the official one. Local packaging is still documented as a dev option.Notes
.difypkgis tracked, anddist/was already gitignored. Official packages come only from CI.v0.2.0, the## [0.2.0]CHANGELOG body still says "Not released: no tag, no marketplace submission." That text becomes the release notes, so update it (and date the heading) in a small PR first.Code by Claude Code (Opus), reviewed before opening.